﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OneMile.DAL;
using OneMile.Entity.Model;

namespace OneMile.BLL
{
    public class BLLUPromotions:BaseBLL
    {
        private DALUPromotions dal;
        public DALUPromotions DAL
        {
            get
            {
                if (dal == null)
                {
                    dal = DALFactory.getInstance().CreateUPromotionsDAL();
                }
                return dal;
            }
        }

        public IList<EPromotions> GetPromotionsByShopId(String ShopsId, List<String> idList)
        {
            try
            {
                return DAL.GetPromotionsByShopId(ShopsId, idList);
            }
            catch (Exception e)
            {
                
                base.WriteLog(e.Message);
                throw e;
            }
        }

    }
}
